package com.lyc.type;

import com.lyc.entity.Poin;
import com.lyc.entity.Poin2;

/**
 * @author ：Xiaochen
 * @date ：Created in 2022/10/25 10:16
 * @description：
 * @modified By：
 * @version:
 */
public class Text2 {
    public static void main(String[] args) {
        Poin2<Integer> p1 = new Poin2<>();
        p1.setVar(555);
        fun(p1);

        Poin2<String> p2=new Poin2<>();
        p2.setVar("hello java");
        fun(p2);

    }
    public static void fun(Poin2<?> poin2){
        poin2.show();
    }
}